<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <title>用户推广</title>
    <?php PrintPageHead(); ?>
    <link href="../resource/css/hermes.css" rel="stylesheet">
    <link href="../resource/js/calendar/calendar-blue.css" type="text/css" rel="stylesheet">
    <script src="../resource/js/calendar/calendar.js" type="text/javascript"></script>
    <style type="text/css">
        .divleft{width: 29%; float: left; text-align:left; border-right: solid 1px #d5d5d5; margin-right: 2% }
        .divright{ width: 27%; float:right; text-align: right;}
        /*分页*/

        .pages{ padding:0 10px; overflow:hidden; }
        .pages .back_page, .pages .next_page{ overflow:hidden; border:1px solid #CCC; border-radius:2px; text-decoration:none; text-align:center; line-height:44px; font-size:100%; background-color:#FFF; display:block; }
        .pages .back_page{ color:#999; margin-top:10px; }
        .pages .next_page{ color:#DB3656; }
        .page_tips{ width:100%; text-align:center; padding:10px 0; font-size:80%; color:#999; }
        a { text-underline: none;}
    </style>
</head>
<body>
<?php
/**
 * Created by PhpStorm.
 * User: dyn
 * Date: 15/4/22
 * Time: 下午3:54
 */
header("Content-Type: text/html; charset=utf-8");
$openId=getCurrentUserOID();//id


//标示页面，commit页面保存时解析是来自哪个页面的保存
$busFlag=Page::y用户中心;
$center=new CUI数据中心(Page::m卖家中心,$openId);
$用户信息 = $center->生成有效链接('UserInfo',$_GET['state']);
$推广二维码 = $center->生成有效链接('Seller11Qrcodea',$_GET['state']);
$用户推广二维码=pdo()->selectColumns("用户推广表",array("*"),array("用户id"=>$_SESSION['vo用户数据']['id']));

$已推广用户列表  = $center->get已推广用户列表($_SESSION['vo用户数据']['id'],$_GET['page'],$_GET);

?>

<div class="container-fluid">
    <div class="panel panel-primary"  style="border:1px solid #DB3656;">
        <div class="panel-heading text-center" style="background-color: #DB3656"><h3 class="panel-title">已邀请用户列表</h3></div>
        <div class="panel-body">
            <div class="panel-group"   id="accordion" role="tablist" aria-multiselectable="true">
                <div class="panel-heading" style="background-color:#d5d5d5" >
                    <div class="row">
                        <div class="col-xs-4 text-justify" style="width:100%;">
                            <div class="divleft"><b  >用户昵称</b></div>
                            <div class="divleft"><b  >认证状态</b></div>
                            <div class="divright"><b>关注时间</b></div>
                        </div>
                    </div>
                </div>
            </div>


            <div class="panel panel-default">
                <?php foreach($已推广用户列表['result'] as $key => $value):?>
                    <div class="panel-heading"  style=" <?php if($key%2==0){echo "background-color:#fff;";}else{ echo "border-top: solid 2px #f7f7f7;";}?>">
                        <div class="row">
                            <div class="col-xs-4 text-justify" style="width:100%; ">
                                <div class="divleft"><span><?php echo  $value['name']; ?></span></div>
                                <div class="divleft"><span><?php   if($value['认证'] ==3)echo "<span style='color: #cccccc'>已认证</span>";else echo "<span style='color: #999'>未认证</span>"; ?></span></div>
                                 <div class="divright"><?=$value['最初关注时间']?></div>
                            </div>
                        </div>
                    </div>
                <?php endforeach; ?>

            </div>
            </div>
            <?=$已推广用户列表['show']?>
        </div>
        </div>
    </div>
</div>

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="../resource/js/jquery-1.11.1.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="../resource/js/bootstrap.min.js"></script>
<script language="JavaScript">
</script>
</body>
</html>